package com.xmy.study.util;
import java.util.List;
import java.util.Map;

public class PageResult<T> {

    private Long total;//总记录数
    private List<T> rows;//记录
    private Long page;
    private Map<String,Object> other;//其它数据

    public PageResult(List<T> rows,Long total, Long page) {
        this.total = total;
        this.rows = rows;
        this.page = page;
    }

    public PageResult(List<T> rows,Long total, Long page,Map<String,Object> map) {
        this.total = total;
        this.rows = rows;
        this.page = page;
        this.other = map;
    }

    public Long getPage() {
        return page;
    }

    public void setPage(Long page) {
        this.page = page;
    }

    public PageResult() {
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public Map<String, Object> getOther() {
        return other;
    }

    public void setOther(Map<String, Object> other) {
        this.other = other;
    }
}
